/**
 * SPDX-FileCopyrightText: 2023-2025 Sangfor Technologies Inc.
 * SPDX-License-Identifier: Mulan PSL v2
 */
/**
 * Created by ued on 2016/11/7.
 */

import uuid from 'src/util/uuid';

describe('src/util/uuid', () => {
    it('general uuid without prefix', () => {
        let id = uuid();
        expect(id).to.contain('sf-id-');
    });

    it('general uuid with prefix: abcdefg', () => {
        let id = uuid('abcdefg');
        expect(id).to.contain('abcdefg');
    });
});
